<?php

namespace App\model\user;

use Illuminate\Database\Eloquent\Model;

/**
 * App\model\user\UserSocialite
 *
 * @property int $id
 * @property string|null $nickname
 * @property string|null $openid
 * @property string|null $avatar
 * @property int|null $user_id
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property string|null $type
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\user\UserSocialite whereAvatar($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\user\UserSocialite whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\user\UserSocialite whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\user\UserSocialite whereNickname($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\user\UserSocialite whereOpenid($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\user\UserSocialite whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\user\UserSocialite whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\user\UserSocialite whereUserId($value)
 * @mixin \Eloquent
 */
class UserSocialite extends Model
{
    protected  $table='user_socialite';
    protected $fillable=['nickname','openid','avatar','user_id','type'];
    const WECHAT='wechat';
    static $typeMap=[
        self::WECHAT=>'微信登录',
    ];
}
